#!/bin/bash

read -p "输入文件后缀" fname

if find /tmp -name "*.$fname" &>/dev/null;then
	fcount=$(find /tmp -name "*.$fname" | wc -l)
	echo "后缀为$fname的文件个数为$fcount"
fi

